package com.titan.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * cabin ['kæbin] 
	n. 船舱,机舱,小木屋
	
 * @author ehaojii
 */
@Entity
@Table(name = "CABIN")
public class Cabin {
	private int id;
	private String name;
	private int deckLevel;
	private int shipId;
	private int bedCount;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name = "ID")
	public int getId() {
		return id;
	}

	public void setId(int pk) {
		id = pk;
	}
	
	@Column(name = "NAME")
	public String getName() {
		return name;
	}

	public void setName(String str) {
		name = str;
	}

	@Column(name = "DECK_LEVEL")
	public int getDeckLevel() {
		return deckLevel;
	}

	public void setDeckLevel(int level) {
		deckLevel = level;
	}

	@Column(name = "SHIP_ID")
	public int getShipId() {
		return shipId;
	}

	public void setShipId(int sid) {
		shipId = sid;
	}

	@Column(name = "BED_COUNT")
	public int getBedCount() {
		return bedCount;
	}

	public void setBedCount(int bed) {
		bedCount = bed;
	}
}
